<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\User;

class UserController extends Controller
{
    //
    public function home(){
        return view('setting/home');
    }
    
    public function avatar(){
        return view('setting/avatar');
    }

    public function avatarUp(Request $request){
        // $request->get('')
        $user = User::find(2);
        // $user->avatar = $request->get('')
        return redirect('setting/home');
    }
}
